package com.fenquen.dfs.router.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
public class DFSRouterConfig {
    @Value("${dfs.replica.num}")
    public Integer replicaNum;

    @Value("${dfs.storage.upload.uri}")
    public String storageUploadUri;

    @Value("${dfs.max.router.retry.count}")
    public Integer maxRouterRetryCount;

    @Value("${dfs.nginx.upload.addr}")
    public String nginxUploadAddr;

    @Value("${multicast.host}")
    public String multicastHost;

    @Value("${multicast.port}")
    public Integer multicastPort;

    @Value("${multicast.local.host}")
    public String multicastLocalHost;

    @Value("${dfs.max.submit.interval}")
    public Integer maxSubmitInterval;
}
